package com.jic.market.service.coupon;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.entity.coupon.CouponDetail;

import java.util.Date;
import java.util.List;

/**
 * 优惠券明细表
 *
 * @author : seven
 * @version : v1.0.0
 * @email : 774329481@qq.com
 * @since : 2020-03-16 05:05:22
 */
public interface CouponDetailService {

    long insert(CouponDetail couponDetail);

    long delete(Long id);

    long update(CouponDetail couponDetail);

    CouponDetail queryByPrimaryKey(Long id);

    List<CouponDetail> query(CouponDetail couponDetail);

    public PageResult<CouponDetail> queryPage(CouponDetail couponDetail,
                                              Page pageQuery,
                                              Date createStartTime,
                                              Date createEndTime,
                                              Date useStartTime,
                                              Date useEndTime);

    RestResult<String> updateCouponStatus(String couponCode);
}